package com.example.actearly_revised;

import java.util.HashMap;
import java.util.Map;


public class QuestionsObject {
		
	public class Node{
		public int milestone_in_months;
		public String Question;
		public int Urgency;
		public String Category;
		public int q_id;
		public Node(int milestone, String question, int urgency, String category, int q_id)
		{
			this.milestone_in_months = milestone;
			this.Question = question;
			this.Urgency = urgency;  // 0 for urgent, 1 for not urgent
			this.Category = category;  // 0 for urgent, 1 for not urgent
			this.q_id = q_id;

		}
	}
	
	public Map<String, Node> newMap;
		
	public QuestionsObject(){
		newMap = new HashMap<String, Node>();
	}
	

	public void put(String QuestionID, String Question, int milestone, int Urgency, String category, int q_id){
		newMap.put(QuestionID, new Node(milestone,Question,Urgency,category, q_id));
	}
	
	public Node getQuestions(String QuestionID){
		return newMap.get(QuestionID);
	}

	public int count()
	{
		return newMap.size();
	}
	
	public Map<String, Node> getMap(){
		return newMap;
	}
	
	
}
